<template>
  <div id="b-page" style="width: 100%;height: 100%;    background: #213c3d8a;">
    <div class="B-border">
      <div class="B-title">
        <div>
          <div class="bar"></div>
          <div style="margin-top: 16px" class="B-top-title">
            <router-link class="b-route" to="/Allrouter/HomePage">
              <el-icon><HomeFilled /></el-icon>
            </router-link>
            <router-link class="b-route" to="/Allrouter/Home">
              <el-icon><Avatar /></el-icon>
            </router-link>
            <router-link class="b-route" to="/Allrouter/ChoseIMG">
              <el-icon><IconMenu /></el-icon>
            </router-link>
            <a class="b-route" to="/Allrouter/d">
              <el-icon><Histogram /></el-icon>
            </a>

          </div>
        </div>


        <div class="B-top-title">
<!--          <router-link class="b-route" to="/Allrouter/e">-->
<!--            <el-icon><Promotion /></el-icon>-->
<!--          </router-link>-->
<!--          <router-link to="/Allrouter/f" class="b-route" >-->
<!--            <el-icon><Tools /></el-icon>-->
<!--          </router-link>-->
<!--        </div>-->
          <a class="b-route" style="    cursor: no-drop; " to="/Allrouter/e">
            <el-icon><Promotion /></el-icon>
          </a>
          <a to="/Allrouter/f"   style="    cursor: no-drop; "  class="b-route" >
            <el-icon><Tools /></el-icon>
          </a>
        </div>
      </div>
      <!--      <div class="b-content">-->
      <!--        <h1>欢迎来到 B 页面</h1>-->
      <!--        <el-icon>-->
      <!--          <location/>-->
      <!--        </el-icon>-->
      <!--      </div>-->
      <router-view/>
    </div>
  </div>
</template>

<script lang="ts" setup>
import {ref} from 'vue'
import {
  Histogram,
  Menu as IconMenu,
  Location,
  Avatar,
  HomeFilled,
  Setting,
  Tools,
  Promotion,
} from '@element-plus/icons-vue'

const isCollapse = ref(true)
const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
</script>

<style lang="scss">
#b-page {
  display: flex;
}

.B-border {
  flex-direction: row;
  display: flex;
  flex: 1;
  margin: 24px;
  padding: 24px 42px;
  background: black;
  border-radius: 16px;
  padding-bottom: 42px;
}

.B-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bar{
  height: 62px;
  margin: 8px;
  border-radius: 16px;
}
.B-top-title {
  border-radius: 34px;
  width: 60px;
  background-color: #181616;
  flex-direction: column;

  color: #ffffff;
  display: flex;

  a.b-route {
    color: #fff;
    text-decoration: solid;
    border-radius: 71px;
    width: 42px;
    height: 42px;
    text-align: center;
    margin: 16px auto;
    font-size: 26px;

    i {
      vertical-align: bottom;
    }
  }

  a.router-link-active.router-link-exact-active {
    //border-bottom: 2px solid #fff;
    transition: width 0.5s;
    background-color: #8adb34d1;
  }
}

/* 你的样式 */
</style>